<%-- Directive Tag'i Tomcat translator'a bilgi vermek için kullanılır --%>
<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>


	<!-- Decleration tag'i global sınıf değişkeni oluşturur -->
	<%!int count = 0;

	public void test() {
		System.out.println("Hello World");
	}%>

	<!-- Implicit JSP objects 
			request
			response
			config
			applicatication
			out
			session
			page
			pageContext
	
	-->

	<!-- Scriplet -->
	<%
		out.println(new Date());
		count++;
		out.println(count);
		test();
		pageContext.setAttribute("number", 2, PageContext.APPLICATION_SCOPE);
	%>

	<a href="second.jsp?name=haluk&last_name=alp">Second Page</a>

	<%=new String[3]%>

	<!-- Expression -->
	<%=count%>

	<%=config.getInitParameter("admin")%>

</body>
</html>